using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.ICM
{
	[DataContract, Table("IcmDeliveryNoteItemExtra")]
    public class DeliveryNoteItemExtra
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "DnItemExtraId", ResourceType = typeof(Resources.DeliveryNoteItemExtraResource))]
        public int DnItemExtraId { get; set; }

        [ForeignKey("DeliveryNote")]
		[DataMember, Display(Name = "DnId", ResourceType = typeof(Resources.DeliveryNoteItemExtraResource))]
        public Nullable<int> DnId { get; set; }

        [ForeignKey("MasResourceItem")]
		[DataMember, Display(Name = "ResItemId", ResourceType = typeof(Resources.DeliveryNoteItemExtraResource))]
        public Nullable<int> ResItemId { get; set; }

		[DataMember, Display(Name = "ItemQty", ResourceType = typeof(Resources.DeliveryNoteItemExtraResource))]
        public Nullable<int> Qty { get; set; }

		[DataMember, Display(Name = "ItemPrice", ResourceType = typeof(Resources.DeliveryNoteItemExtraResource))]
        public Nullable<double> Price { get; set; }

		[DataMember, Display(Name = "ItemDescr", ResourceType = typeof(Resources.DeliveryNoteItemExtraResource))]
        public string Descr { get; set; }

		[DataMember, Display(Name = "ItemRemark", ResourceType = typeof(Resources.DeliveryNoteItemExtraResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.DeliveryNoteItemExtraResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.DeliveryNoteItemExtraResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.DeliveryNoteItemExtraResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.DeliveryNoteItemExtraResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }
    

		[DataMember]
        public virtual DeliveryNote DeliveryNote { get; set; }

        [DataMember]
        public virtual MasResourceItem MasResourceItem { get; set; }

    }
}